<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/3
 * Time: 15:42
 */

namespace App\Http\Controllers;

use App\Models\PromoterModel;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Facades\Cookie;


class PersonController extends Controller
{
    public function info(Request $request,Response $response)
    {
        //var_dump(public_path('static'));
        //var_dump(base_path());
        //var_dump(app_path());
        //var_dump(url());
        //dd(url('/'));


        spl_autoload_register(function ($class_name) {
            //require_once $class_name . '.php';
            var_dump($class_name);
        });
        $obj  = new MyClass1();
        $obj2 = new MyClass2();
        exit;


        $str  = @iconv('utf-8', 'gb2312', "过");
        $encode = mb_detect_encoding($str, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5'));

        //echo $encode;
        $value = config('custom.reportform.commissionAmount');
        echo $value;
        return view("person.info");
    }
    public function test()
    {
        $objPHPExcel = new \PHPExcel();
        $url = "https://www.baidu.com";

        $http = new \Http\Httplib($url);

        $http->send();

        $webHtml = $http->response();

        echo $webHtml;

        test01();

        $u = new \App\Model\User();
        $u->test11();

        return "13";
    }
}